#include <iostream>
#include <vector>
using namespace std;

int main() {
    int n, m;
    cin >> n >> m;
    vector<vector<int>> ret(n + 2, vector<int>(m + 2));
    ret[0][1] = 1;
    for (int i = 1; i <= n + 1; i++)
    {
        for (int j = 1; j <= m + 1; j++)
        {
            ret[i][j] = ret[i - 1][j] + ret[i][j - 1];
        }
    }
    cout << ret[n + 1][m + 1] << endl;
    return 0;
}

class UnusualAdd {
public:
    int addAB(int A, int B) {
        // write code here
        if (A == 0)
        {
            return B;
        }
        if (B == 0)
        {
            return A;
        }
        return addAB((A ^ B), (A & B) << 1);
    }
};